package Code.Day3_20240920.com.dx.day03;

/**
 * @ClassName Test04
 * @Description 直接传参和引用传参
 * @Author 12994
 * @Date 2024/9/20 13:20
 * @Version 1.0
 **/
public class Test04 {
    public static void main(String[] args) {
        int[] a = {1, 2, 3, 4, 5};
        Test04 test04 = new Test04();
        test04.change(a);
        System.out.println(a[1]);//1000

        String x = "6";
        System.out.println(test04.st(x));
    }

    public void change(int[] a) {
        System.out.println(a[1]);//2
        a[1] = 1000;
        System.out.println(a[1]);//1000
    }

    public String st(String x) {
        return x + ".";
    }
}
